using System.Windows.Controls;
using System.Windows;
using Sany.AGV.RobotTool.ViewModels;

namespace Sany.AGV.RobotTool
{
	class PanesStyleSelector : StyleSelector
	{
		public Style AnchorableStyle
		{
			get;
			set;
		}

		public Style DocumentStyle
		{
			get;
			set;
		}

		public override Style SelectStyle(object item, DependencyObject container)
		{
			if (item is AnchorableViewModel)
				return AnchorableStyle;

			if (item is DocumentViewModel)
				return DocumentStyle;

			return base.SelectStyle(item, container);
		}
	}
}
